uefi-macros: Generate Android.bp file Use the cargo_embargo tool to generate the cargo_embargo.json file. Use the cargo_embargo tool to generate the Android.bp file. cargo_embargo autoconfig cargo_embargo.json cargo_embargo generate cargo_embargo.json Test: m libuefi_macros Change-Id: I9630ad0d8efd85b91e2dfc8d6e630c02ab98d2ed 
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..ad1e1a7 --- /dev/null +++ b/Android.bp 
@@ -0,0 +1,30 @@ +// This file is generated by cargo_embargo. +// Do not modify this file because the changes will be overridden on upgrade. + +package { + default_applicable_licenses: ["external_rust_crates_uefi-macros_license"], + default_team: "trendy_team_android_rust", +} + +license { + name: "external_rust_crates_uefi-macros_license", + visibility: [":__subpackages__"], + license_kinds: ["SPDX-license-identifier-MPL-2.0"], + license_text: ["LICENSE"], +} + +rust_proc_macro { + name: "libuefi_macros", + crate_name: "uefi_macros", + cargo_env_compat: true, + cargo_pkg_version: "0.17.0", + crate_root: "src/lib.rs", + edition: "2021", + rustlibs: [ + "libproc_macro2", + "libquote", + "libsyn", + ], + product_available: true, + vendor_available: true, +} 
diff --git a/cargo_embargo.json b/cargo_embargo.json new file mode 100644 index 0000000..cb908d7 --- /dev/null +++ b/cargo_embargo.json 
@@ -0,0 +1,3 @@ +{ + "run_cargo": false +}